$(function(){
	$('.choice ul li').click(function(){
		$('.choice ul li').removeClass('act');
		$(this).addClass('act');
	})
	$.slider({
    	effect: 'slide',
    	items: '.banner-3 .slider-item',
    	navBtns: '.banner-3 .btn li'
    });
    //补零
    function zhuan(n){
		if(n<10){
			return "0"+n;
		}else{
			return ""+n;
		}
	}
	//获取时间
    function time(){
		var str = new Date();
		var fmd = str.getFullYear()+"-"+str.getMonth()+1+"-"+str.getDate();
		var num = zhuan(str.getHours())+":"+zhuan(str.getMinutes())+":"+zhuan(str.getSeconds());
		var day = str.getDay();
		var arr = ["日","一","二","三","四","五","六",]
		$('.date .span1').text(fmd);
		$('.date .span2').text(num);
		$('.date .span3 i').text(arr[day]);
	}
	setInterval(time,1000);
	time();
	//点击读取更多
    $('.vip .more').click(function(){
    	$.ajax({
    		url: 'text.html',
    		dataType: 'html',
    		success: function(data) {
    			$('.vip .bd ul').append(data);
    		}
    	});
    })
})